package com.mes.biz.domain;

import com.mes.common.annotation.Excel;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 采购单明细对象 biz_purchase_detail
 * @author wy
 * @email wy
 * @date 2023-05-24
 */
@Data
public class BizPurchaseDetail extends BaseEntity<BizPurchaseDetail>
{
    private static final long serialVersionUID = 1L;

    @FieldRemark(name = "采购单编号",field = "purchaseCode")
    private String purchaseCode;

    @FieldRemark(name = "供应商编号",field = "supplierCode")
    private String supplierCode;

    @FieldRemark(name = "产品编号",field = "productCode")
    private String productCode;

    @FieldRemark(name = "仓位",field = "spaceId")
    private String spaceId;

    @FieldRemark(name = "数量",field = "productNumber")
    private BigDecimal productNumber;

    @FieldRemark(name = "单价",field = "unitPrice")
    private BigDecimal unitPrice;

    @FieldRemark(name = "总金额",field = "totalAmount")
    private BigDecimal totalAmount;



    /** 辅助单位1 */
    @LogField
    @FieldRemark(name = "辅助单位1",field = "assistUnitA")
    private String assistUnitA;

    /** 辅助单位2 */
    @LogField
    @FieldRemark(name = "辅助单位2",field = "assistUnitB")
    private String assistUnitB;


    /** 辅助单位1换算公式 */
    @LogField
    @FieldRemark(name = "辅助单位1换算公式",field = "convertRatioA")
    private BigDecimal convertRatioA;

    /** 辅助单位2换算公式 */
    @LogField
    @FieldRemark(name = "辅助单位2换算公式",field = "convertRatioB")
    private BigDecimal convertRatioB;

    /** 采购价 */
    @LogField
    @FieldRemark(name = "采购价",field = "purchasesPrice")
    private BigDecimal purchasesPrice;

    /** 辅助单位1采购价 */
    @LogField
    @FieldRemark(name = "辅助单位1采购价",field = "purchasesPriceA")
    private BigDecimal purchasesPriceA;

    /** 辅助单位2采购价 */
    @LogField
    @FieldRemark(name = "辅助单位2采购价",field = "purchasesPriceB")
    private BigDecimal purchasesPriceB;

    /** 销售价 */
    @LogField
    @FieldRemark(name = "销售价",field = "salePrice")
    private BigDecimal salePrice;

    /** 辅助单位1销售价 */
    @LogField
    @FieldRemark(name = "辅助单位1销售价",field = "salePriceA")
    private BigDecimal salePriceA;

    /** 辅助单位2销售价 */
    @LogField
    @FieldRemark(name = "辅助单位2销售价",field = "salePriceB")
    private BigDecimal salePriceB;

    /** 辅助单位数量1 */
    @Excel(name = "辅助单位数量1")
    @LogField
    @FieldRemark(name = "辅助单位数量1",field = "assistNumberA")
    private BigDecimal assistNumberA;

    /** 辅助单位数量2 */
    @Excel(name = "辅助单位数量2")
    @LogField
    @FieldRemark(name = "辅助单位数量2",field = "assistNumberB")
    private BigDecimal assistNumberB;

    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;

    private String productModel;

    private String brand;

    @Excel(name = "单位")
    @LogField
    @FieldRemark(name = "单位",field = "unit")
    private String unit;

    private String spec;

    private String color;

    private BizProduct bizProduct;

    private BigDecimal balance;
    private BigDecimal amount;
    private String inventoryFlag;

}
